#!/usr/bin/env node

const EventEmitter = require('events');

// 创建一个空的 Radio 类
class Radio extends EventEmitter {
  constructor(station) {
    super();
    this.station = station;
    setTimeout(() => {
      this.emit('play', this.station);
    }, 0);
    setTimeout(() => {
      this.emit('stop', this.station);
    }, 5000);
  }
}

module.exports = Radio;